package com.acme.bankapp.domain.bank;


public abstract class AbstractAccount implements Account{

	// protected final int id;
	protected double balance;

	public AbstractAccount( double amount) throws IllegalArgumentException{
		if(amount < 0){
			throw new IllegalArgumentException();
		}else{
			this.balance = amount;
		}
	}

	public double getBalance() {
		return this.balance;
	}

}
